﻿using System;

namespace InfoJetSoft.Service.Entity
{
	public class XSNConfig
	{
		public string WebContext
		{
			get
			{
				return webContext;
			}
			
			set
			{
				this.webContext = value;
			}
			
		}
		
		public byte[] Content
		{
			get
			{
				return content;
			}
			
			set
			{
				this.content = value;
			}
			
		}

		public string Folder
		{
			get
			{
				return this.folder;
			}
			set
			{
				this.folder = value;
			}
		}

		public bool IsLoadingFromFolder
		{
			get
			{
				return this.isLoadingFromFolder;
			}
			set
			{
				this.isLoadingFromFolder = value;
			}
		}
		
		//对于InfoJetService，loadFromDisk应该总是false，content是Binary的XSN文件。
		//如果被DataFlow使用，loadFromDisk被设置为true，直接从folder目录中读取XSN中的文件。
		private byte[] content = null;
		private string webContext = null;
		private string folder = null;
		private bool isLoadingFromFolder = false;
	}
}